package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func GetUserHandler(c *gin.Context) {
	bookId := c.Param("id")
	c.String(http.StatusOK, fmt.Sprintf("got the details of userlist: %s", bookId))
}

func main() {
	r := gin.Default()
	//	 URL 参数
	r.GET("/user", GetUserHandler)

	r.Run(":8080")

}
